package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 31043
 * @Description: NursingProjectPlanMapper
 * @Date: 2024/1/5 AM 11:53
 * @Version: 1.0
 */
@Mapper
public interface NursingProjectPlanMapper {

    void insertBatch(List<NursingProjectPlan> nursingProjectPlans);

    /**
     * @Description: 根据计划id查询绑定的项目
     * @param planId 计划id
     */
    List<NursingProjectPlanVo> queryByPlanId(Long planId);

    /**
     * 删除计划关联的项目数据
     * @param planId 计划id
     */
    void deleteByPlanId(Long planId);


}
